import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}

//查询冠军竞猜投注对象列表
export function championList(params) {
    return request({
        url: `/guess/activity/champion/list`,
        method: 'get',
        params
    })
}

//新增冠军竞猜投注对象
export function addChampion(data) {
    return request({
      url: '/guess/activity/champion',
      method: 'post',
      data
    })
}
//修改冠军竞猜投注对象
export function editChampion(data) {
    return request({
      url: '/guess/activity/champion',
      method: 'put',
      data
    })
}
//获取冠军竞猜投注对象
export function championDetail(id) {
    return request({
        url: `/guess/activity/champion/${id}`,
        method: 'get',
    })
}
//截止下注
export function stopDeadlineDeadline(id) {
    return request({
      url: `/guess/activity/champion/deadline/stop/${id}`,
      method: 'put',
    })
}
//恢复下注
export function resumeChampionDeadline(data) {
    return request({
      url: `/guess/activity/champion/deadline/resume`,
      method: 'put',
      data
    })
}
//发放奖励
export function championAmount(id) {
    return request({
      url: `/guess/activity/champion/amount/issue/${id}`,
      method: 'put',
    })
}
//获取冠军竞猜赛事状态
export function getChampionStatus(id) {
    return request({
        url: `/guess/activity/champion/events/status/${id}`,
        method: 'get',
    })
}
//取消胜出
export function cancelWin(id) {
    return request({
      url: `/guess/activity/champion/win/cancel/${id}`,
      method: 'put',
    })
}
// 胜出
export function win(id) {
    return request({
      url: `/guess/activity/champion/win/${id}`,
      method: 'put',
    })
}
//冠军竞猜投注明细列表
export function championRecordList(params) {
    return request({
        url: `/guess/activity/champion/bet/record/list`,
        method: 'get',
        params
    })
}




